package com.innodata.riskEngine.common.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @Author: liboshuai
 * @Date: 2023-10-07 18:01
 * 游戏平台po对象
 **/
public class ChannelDataPO implements Serializable {
    private static final long serialVersionUID = -8812960163365157207L;

    /**
     * 活动id
     */
    private String campaignId;
    /**
     * 用户id
     */
    private String userId;

    /**
     * 抽奖次数
     */
    private Long lotteryNumber;

    // setter and getter

    public String getCampaignId() {
        return campaignId;
    }

    public void setCampaignId(String campaignId) {
        this.campaignId = campaignId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getLotteryNumber() {
        return lotteryNumber;
    }

    public void setLotteryNumber(Long lotteryNumber) {
        this.lotteryNumber = lotteryNumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChannelDataPO that = (ChannelDataPO) o;
        return Objects.equals(campaignId, that.campaignId) && Objects.equals(userId, that.userId) && Objects.equals(lotteryNumber, that.lotteryNumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(campaignId, userId, lotteryNumber);
    }

    @Override
    public String toString() {
        return "ChannelDataPO{" +
                "campaignId='" + campaignId + '\'' +
                ", userId='" + userId + '\'' +
                ", lotteryNumber=" + lotteryNumber +
                '}';
    }
}
